//
// Created by Administrator on 2025/9/4.
//
#include <iostream>
#include <map>
#include <string>

int main()
{
    std::multimap< std::string, std::string> authors;
    // adds the first element with the key Barth, John
    authors.insert({"Barth, John", "Sot-Weed Factor"});
    // ok: adds the second element with the key Barth, John
    authors.insert({"Barth, John", "Lost in the Funhouse"});

    for (const auto& w : authors) // for each element in the map
        // print the results
            std::cout << w.first << " writes " << w.second << std::endl;
}